package com.njym.java.security.app.biz;

import com.njym.java.security.app.entity.LikeOrCollect;
import com.njym.java.security.app.entity.LikeOrCollectVo;
import com.njym.java.security.app.mapper.LikeOrCollectMapper;
import com.njym.java.security.common.biz.BaseBiz;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 
 *
 * @author lijie
 * @email 717057076@qq.com
 * @date 2020-01-07 10:59:01
 */
@Service
public class LikeOrCollectBiz extends BaseBiz<LikeOrCollectMapper,LikeOrCollect> {

    public List<LikeOrCollectVo> getMyCollect(Integer userId){
        return  mapper.getmycollect(userId);
    }

    public List<LikeOrCollect> getList(Integer type,Integer couId,Integer userId){
        return mapper.getList(type, couId, userId);
    }

    public Boolean delByParam(Integer type,Integer couId,Integer userId){
        return mapper.delByParam(type, couId, userId);
    }

}